#include <stdio.h>
int fac(int n)
{
	int t=1,k;
	for(k=2;k<=n;k++)
		t=t*k;
	return (t);
}
int main()
{
	int cmn,m,n,t;
	printf("input m,n=");
	scanf("%d,%d",&m,&n);
	if(m<n)
	{
		t=m;m=n;n=t;
	}
	cmn=fac(m)/(fac(n)*fac(m-n));
	printf("cmn=%d\n",cmn);
	return 0;
}